package com.bdqn.crm.service;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * PasswordService
 *
 * @author f
 * @since 2021/12/20
 */
public interface PasswordService {
    //输入明文密码得到密文密码
    String encryptPassword(Object plaintextPassword) throws IllegalArgumentException;
}

public interface CredentialsMatcher {
    //匹配用户输入的 token 的凭证(未加密)与系统提供的凭证(已加密)
    boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info);
}
}
